package main

import "fmt"

const COUNT  = 4
func main() {
	a:=[COUNT]string{"abc","ABC","123","一二三"}
	//zhi zhen shu zu
	var ptr [COUNT]*string

	fmt.Printf("a的类型%T,a的值为%v \n",a,a)
	fmt.Printf("ptr的类型%T,ptr的值为%v \n",ptr,ptr)
	fmt.Printf("&a的类型%T,&a的值为%v \n",&a,&a)

	for i:=0;i<COUNT ;i++  {
		// set value
		ptr[i] = &a[i]
	}
	fmt.Printf("%T，%v \n",ptr,ptr)
	fmt.Println(ptr[0])

	for i:=0;i<COUNT ;i++  {
		fmt.Println(*ptr[i])
	}

	for _,value :=range ptr{
		fmt.Println(*value)
	}
}
